package cn.huihuo.weibo.controller;

import cn.huihuo.weibo.service.ParticipationService;
import cn.jfinalbbs.common.BaseController;
import cn.jfinalbbs.common.Constants;
import cn.jfinalbbs.user.User;

/**
 * Created by zhengjunbo on 2015/10/25.
 */
public class AbortController extends BaseController {

    public void index(){
        User user = getSessionAttr(Constants.USER_SESSION);
        setAttr("participationSize", user==null?"": ParticipationService.service.findTotalParticipation(user.getStr("id")));
        render("huihuo/abort.html");
    }
}
